Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickTime Components /
Chapter 2 - Movie Controller Components / Movie Controller Components Reference
Movie Controller Functions / Managing Controller Attributes


MCSetControllerPort

The MCSetControllerPort function allows your application to set the graphics port for a movie controller. You can use this function to place a movie and its associated movie controller in different graphics ports. If you are using an attached controller, both the controller and the movie's graphics ports are changed. If you are using a detached controller, this function changes only the graphics port of the control portion of
the controller. You must use the Movie Toolbox's SetMovieGWorld function followed by the MCMovieChanged function to change other portions.

pascal ComponentResult MCSetControllerPort (MovieController mc,
                                             CGrafPtr gp);
mc
Specifies the movie controller for the operation. You obtain this
identifier from the Component Manager's OpenComponent or OpenDefaultComponent function, or from the NewMovieController function (described on page 2-28).
gp
Points to the new graphics port for the movie controller. Set this parameter to nil to use the current graphics port.
DESCRIPTION
The movie controller component may use the foreground and background colors
from the graphics port at the time the MCSetController function is called to colorize the movie controller.

Movie controller components use the MCSetControllerPort function each time
you create a new movie controller. Hence, your component must be set to a valid port before creating a new movie controller.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help